ViewConfigurationCompat

Helper for accessing features in ViewConfiguration.

Functions

Link copied to clipboard
open fun getScaledHorizontalScrollFactor(@NonNull config: @NonNull ViewConfiguration, @NonNull context: @NonNull Context): Float
Link copied to clipboard
open fun getScaledHoverSlop(@NonNull config: @NonNull ViewConfiguration): Int
Link copied to clipboard
open fun getScaledMaximumFlingVelocity(@NonNull context: @NonNull Context, @NonNull config: @NonNull ViewConfiguration, inputDeviceId: Int, axis: Int, source: Int): Int
Maximum absolute value of velocity to initiate a fling for a motion generated by an InputDevice with an id of inputDeviceId, from an input source and on a given motion event axis.
Link copied to clipboard
open fun getScaledMinimumFlingVelocity(@NonNull context: @NonNull Context, @NonNull config: @NonNull ViewConfiguration, inputDeviceId: Int, axis: Int, source: Int): Int
Minimum absolute value of velocity to initiate a fling for a motion generated by an InputDevice with an id of inputDeviceId, from an input source and on a given motion event axis.
Link copied to clipboard
open fun getScaledVerticalScrollFactor(@NonNull config: @NonNull ViewConfiguration, @NonNull context: @NonNull Context): Float
Link copied to clipboard
Report if the device has a permanent menu key available to the user, in a backwards compatible way.
open fun shouldShowMenuShortcutsWhenKeyboardPresent(@NonNull config: @NonNull ViewConfiguration, @NonNull context: @NonNull Context): Boolean
Check if shortcuts should be displayed in menus.